import Vue from "vue";
//存储数据
Vue.prototype.$setStoraged = function setStoraged(key, value) {
  uni.setStorage({
    key: key,
    data: value,
  });
};
//获取数据
Vue.prototype.$getStoraged = function getStoraged(key) {
  const data = uni.getStorageSync(key);
  if (data) {
    return data;
  } else {
    return "";
  }
};
//删除数据
Vue.prototype.$removeStoraged = function removeStoraged(key) {
  uni.removeStorageSync(key);
};